package com.fht.spring_boot_study.model.test.service;

import com.fht.spring_boot_study.model.common.entity.ResultEntity;
import com.fht.spring_boot_study.model.common.entity.SearchBean;
import com.fht.spring_boot_study.model.test.entity.Student;
import org.springframework.data.domain.Page;

public interface StudentService {
    ResultEntity<Student> insertStudent(Student student);

    ResultEntity<Student> updateStudent(Student student);

    ResultEntity<Student> deleteStudent(int id);

    Student findByStudentNameAndAge(String studentName, int age);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

}
